package com.star.spring.easyexcel.model;


import java.time.LocalDate;
import java.time.LocalDateTime;

import lombok.Data;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.converters.bytearray.ByteArrayImageConverter;

@Data
public class ImportDTO {
    @ExcelProperty("姓名")
    private String name;
    @ExcelProperty("年龄")
    private String age;
    @ExcelProperty("邮箱")
    private String email;
    @ExcelProperty("日期")
    private LocalDate localDate;
    @ExcelProperty("日期时间")
    private LocalDateTime localDateTime;
    @ExcelProperty(value = "图片", converter = ByteArrayImageConverter.class)
    private byte[] image;
}
